package com.qianlou.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qianlou.common.result.PagedResult;
import com.qianlou.pojo.QuestionLib;
import com.qianlou.pojo.bo.QuestionLibBO;
import com.qianlou.pojo.vo.InitQuestionsVO;
import com.qianlou.pojo.vo.QuestionLibVO;
import jakarta.validation.Valid;

import java.util.List;

/**
 * <p>
 * 面试题库表（每个数字人面试官都会对应一些面试题） 服务类
 * </p>
 *
 * @author James
 * @since 2025-04-26
 */
public interface QuestionLibService extends IService<QuestionLib> {

    void createOrUpdate(@Valid QuestionLibBO questionLibBO);

    PagedResult selectQuestionLibList(String aiName, String question, Integer page, Integer size);

    void display(String questionLibId, Integer isOn);

    List<InitQuestionsVO> getRandomQuestions(String candidateId, Integer num);
}
